﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="MyLink.aspx.cs" Inherits="lcs.Web.Admin.distribution.MyLink" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> 
    <script src="../../My97DatePicker/WdatePicker.js"></script>
    <style type="text/css">
        .auto-style1 {
            width: 764px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
                <tr>
                    <td style="width: 18px" align="right" >
                                             
                        
                    &nbsp;</td>
                    <td class="auto-style1" style="text-align:left;"> 
                        &nbsp;<b>供应商：</b>  <asp:TextBox ID="txtKeyword3" runat="server" Width="84px"></asp:TextBox><b>项目名：</b><asp:TextBox ID="txtxm" runat="server"></asp:TextBox><b>供货期：</b><asp:TextBox ID="txt_startTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})" Width="82px"></asp:TextBox>
                        -<asp:TextBox ID="txt_endTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})" Width="82px"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>                    
                        
                    </td>
                    <td class="tdbg">
                        <asp:Label ID="lblmsg" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
            </table>
            <!--Search end-->
            <br />

            <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="100%" BorderWidth="0px" CellPadding="0" CellSpacing="1" CssClass="gv" GridLines="None"  OnPageIndexChanging ="gridView_PageIndexChanging"
                    
                    AutoGenerateColumns="False"  RowStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" PageSize="20">
                    <Columns>
		<asp:BoundField DataField="purchaseid" HeaderText="采购订单号" SortExpression="purchaseid" ItemStyle-HorizontalAlign="Center"  > 
                            
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:TemplateField HeaderText="项目名称">                            
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Decode(Eval("projectname").ToString()) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
		<asp:BoundField DataField="material" HeaderText="物料描述"  ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="thisMonthCount" HeaderText="本月供应量" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>		
                            <asp:BoundField DataField="sname" HeaderText="供应商" />
                            <asp:BoundField HeaderText="供货期" DataField="supplyDate" />
		<asp:BoundField DataField="arrivalAddress" HeaderText="送货地点" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                            
                            <asp:BoundField HeaderText="联系人" DataField="linkman" />
                        <asp:BoundField HeaderText="联系方式" DataField="contactWay" />
                        </Columns>

<HeaderStyle HorizontalAlign="Center"></HeaderStyle>

                    <PagerStyle CssClass="mypager" />

<RowStyle HorizontalAlign="Center" VerticalAlign="Middle"></RowStyle>
                </asp:GridView>
               <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
                <tr>
                    <td style="width: 1px;">                        
                    </td>
                    <td align="left">
                        <asp:Button ID="btnlld" runat="server" OnClick="btnlld_Click" Text="联络单" />
                    </td>
                </tr>
            </table>
</asp:Content>
